/**
 * Wihidum - Efficient Broker Hierarchy for Publish Subscribe Middleware
 *
 * License      :   Apache License 2.0
 * Home Page    :   http://code.google.com/p/wihidum/
 * Mailing List :   wihidum@googlegroups.com
 */

package lk.mrt.cse.wihidum.storage;

import javax.persistence.*;

/**
 * Represents subscriber object
 */
@Entity
public class Subscriber
{

    //private String id;

    private SubscriberIdentifier subscriberIdentifier;
    private String uuid;
    //private String replyToAddress;
    //private String messageID;
    //private String eventSourceEPR;
    private String notifyToAddress;

   @Id
    public SubscriberIdentifier getSubscriberIdentifier()
    {
        return subscriberIdentifier;
    }

    public void setSubscriberIdentifier(SubscriberIdentifier subscriberIdentifier)
    {
         this.subscriberIdentifier = subscriberIdentifier;
    }

    //there should be a no arg constructor to have a constructor with args
    public Subscriber()
    {

    }

    public Subscriber(SubscriberIdentifier subIdentifier)
    {
        this.subscriberIdentifier=subIdentifier;
    }
     public String getUuid()
    {
        return uuid;
    }

    public void setUuid(String uuid)
    {
        this.uuid = uuid;
    }
    public String getNotifyToAddress ()
    {
        return notifyToAddress;
    }

    public void setNotifyToAddress (String notifyToAddress)
    {
        this.notifyToAddress = notifyToAddress;
    }
}
